#include <iostream>
using namespace std;

int main()
{
    int a, b;
    long long c = 1;
    cin >> a >> b;
    while (c * a % b != 0)
        c++;
    cout << a * c;

    return 0;
}